package com.kifas.model.xml;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@XmlAccessorType(value = XmlAccessType.FIELD)
public class HargaBarangModel implements Serializable {

	private static final long serialVersionUID = 8768469703604388862L;

	private Long idHargaBarang;
	@XmlElement(name = "satuanModel", type = SatuanModel.class)
	private SatuanModel satuan;
	private BigDecimal hargaBeli;
	private BigDecimal hargaJual;
	private String createdBy;

	public HargaBarangModel() {
	}

	public HargaBarangModel(Long idHargaBarang, SatuanModel satuan, BigDecimal hargaBeli, BigDecimal hargaJual, String createdBy) {
		this.idHargaBarang = idHargaBarang;
		this.satuan = satuan;
		this.hargaBeli = hargaBeli;
		this.hargaJual = hargaJual;
		this.createdBy = createdBy;
	}

	public Long getIdHargaBarang() {
		return idHargaBarang;
	}

	public void setIdHargaBarang(Long idHargaBarang) {
		this.idHargaBarang = idHargaBarang;
	}

	public SatuanModel getSatuan() {
		return satuan;
	}

	public void setSatuan(SatuanModel satuan) {
		this.satuan = satuan;
	}

	public BigDecimal getHargaBeli() {
		return hargaBeli;
	}

	public void setHargaBeli(BigDecimal hargaBeli) {
		this.hargaBeli = hargaBeli;
	}

	public BigDecimal getHargaJual() {
		return hargaJual;
	}

	public void setHargaJual(BigDecimal hargaJual) {
		this.hargaJual = hargaJual;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getCreatedBy() {
		return createdBy;
	}

}
